import cookie from './cookie'
import store from '@/store'

const getUserCookie = ()=>{
  let json = cookie.getItem("www_user")
  json = JSON.parse(json)
  return json
}

const freshUserInfo = () => {
  console.log(getUserCookie())
  store.commit('refreshUserInfo',getUserCookie())
}

export default freshUserInfo